package com.up.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * --- 业精于勤,荒于嬉 ---
 *
 * @author Song
 * @date 2024/7/2
 * @desc First
 */
@Controller
public class Demo1controller {
    @GetMapping("/req1")
    public String test1() {
        System.out.println("接受请求1");
        return "ok.html";
    }

    @PostMapping("req2")
    public String test2() {
        System.out.println("接受请求2");
        return "ok.html";
    }
}
